package com.jx.dome1;

public class Computer {
    private String cpu;
    private String memory;
    public String screen;
    String brand;

//    构造函数对对象进行初始化


    public Computer(String cpu, String memory, String screen, String brand) {
        this.cpu = cpu;
        this.memory = memory;
        this.screen = screen;
        this.brand = brand;
    }
    public void Boot(){
        System.out.println("开机-----");
    }

    public void PowerOf() {
        System.out.println("关机-----");
    }

    public void Inter() {
        System.out.println("上网-----");
    }
}
